package per.dg.sqlite.room.dao;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;

import java.util.List;

import per.dg.sqlite.Constant;
import per.dg.sqlite.room.entity.User;

@Dao
public interface UserDao {

    @Query("SELECT * FROM " + Constant.TABLE_NAME)
    List<User> getAllUser();

    @Insert
    void insertUser(User user);

//    @Delete("")
//    void deleteUser(User user);

    @Delete
    void updateUser(User user);

}
